'oleIsObject' for other attributes than Object Text?

Hey,

unfortunetly, 'oleIsObject' only works in the Object Test attribute.
Do you know how to search all the attributes of an object for embedded OLEs?

Thanks a lot...
Mr.Ferrari - Wed Oct 06 07:52:41 EDT 2010

Re: 'oleIsObject' for other attributes than Object Text?
Mathias Mamsch - Wed Oct 06 08:24:49 EDT 2010

How about:
 

// The function you are looking for: bool containsOle (Attr__)
AttrDef ad 
 
Object o = current
 
for ad in current Module do {
    if (ad.typeName == "Text") {
                string attrName = ad.name
                if containsOle (o.attrName) then print "OLE Object found in attribute " attrName "\n"
        }
}

 


Hope this helps, Regards, Mathias

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

Re: 'oleIsObject' for other attributes than Object Text?
Mr.Ferrari - Wed Oct 06 08:55:56 EDT 2010

Mathias Mamsch - Wed Oct 06 08:24:49 EDT 2010

How about:
 

// The function you are looking for: bool containsOle (Attr__)
AttrDef ad 
 
Object o = current
 
for ad in current Module do {
    if (ad.typeName == "Text") {
                string attrName = ad.name
                if containsOle (o.attrName) then print "OLE Object found in attribute " attrName "\n"
        }
}

 


Hope this helps, Regards, Mathias

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

oh, great, thanks for the hint...